package com.zr.spring.listener;

import org.springframework.context.ApplicationListener;
import org.springframework.context.event.EventListener;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;


public class MyListenerA {

    @Async
    @EventListener(Event.class)
    public void register(Event event) {
        System.out.println("MyListenerA: " + event.getName());
    }
}
